package com.xdemo.core.msg;

import com.xdemo.core.MessageType;
import com.xdemo.server.BaseServerMessage;

public class TestExchangeMessage extends BaseServerMessage {

	private int value;
	
	@Override
	public Integer getType() {
		return MessageType.TestExchange;
	}

	@Override
	public void writeImpl() {
		this.writeInt(value);
	}

	@Override
	public void readImpl() {
		value = this.readInt();
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
	
}
